package com.wilmer.question.domain;

import java.math.BigDecimal;
import java.util.List;

import com.wilmer.options.domain.YwOptions;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.wilmer.common.annotation.Excel;
import com.wilmer.common.core.domain.BaseEntity;

/**
 * 题库题干对象 yw_question
 * 
 * @author zl
 * @date 2024-04-16
 */
public class YwQuestion extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long questionId;

    /** 题描述 */
    @Excel(name = "题描述")
    private String content;

    /** 题目类型 */
    @Excel(name = "题目类型")
    private String type;

    /** 题目难度等级 */
    @Excel(name = "题目难度等级")
    private String difficultyLevel;

    /** 完成此题目所能获得的分数 */
    @Excel(name = "完成此题目所能获得的分数")
    private BigDecimal score;

    /** 课程表id,表示题目属于哪个课程 */
    @Excel(name = "课程表id,表示题目属于哪个课程")
    private Long courseId;
    private String courseName;

    /** 题目包含图片，这里可以存储图片 */
    @Excel(name = "题目包含图片，这里可以存储图片")
    private String image;

    /** 题目是否展示（1展示 2不展示） */
    @Excel(name = "题目是否展示", readConverterExp = "1=展示,2=不展示")
    private String active;

    /** 选项 */
    private List<YwOptions> optionsList;


    public List<YwOptions> getOptionsList() {
        return optionsList;
    }

    public void setOptionsList(List<YwOptions> optionsList) {
        this.optionsList = optionsList;
    }

    public void setQuestionId(Long questionId)
    {
        this.questionId = questionId;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public Long getQuestionId()
    {
        return questionId;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setDifficultyLevel(String difficultyLevel) 
    {
        this.difficultyLevel = difficultyLevel;
    }

    public String getDifficultyLevel() 
    {
        return difficultyLevel;
    }
    public void setScore(BigDecimal score) 
    {
        this.score = score;
    }

    public BigDecimal getScore() 
    {
        return score;
    }
    public void setCourseId(Long courseId) 
    {
        this.courseId = courseId;
    }

    public Long getCourseId() 
    {
        return courseId;
    }
    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }
    public void setActive(String active) 
    {
        this.active = active;
    }

    public String getActive() 
    {
        return active;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("questionId", getQuestionId())
            .append("content", getContent())
            .append("type", getType())
            .append("difficultyLevel", getDifficultyLevel())
            .append("score", getScore())
            .append("courseId", getCourseId())
            .append("image", getImage())
            .append("active", getActive())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
